var t = require("../../../@babel/runtime/helpers/defineProperty");

Component({
    options: {
        styleIsolation: "shared"
    },
    properties: {
        homeIsShow: {
            type: Boolean,
            value: !1
        },
        goodsIsShow: {
            type: Boolean,
            value: !0
        },
        allDataList: {
            type: null,
            value: {}
        },
        activeIndex: {
            type: null,
            value: 0
        },
        timeShow: {
            type: Boolean,
            value: !0
        }
    },
    lifetimes: {
        attached: function() {
            this.audioCtx = wx.createInnerAudioContext("myAudio"), this.setData({
                now: String(Date.parse(new Date())).substring(0, 10),
                audio_link: this.data.allDataList.audio
            });
        }
    },
    data: {
        isShow: !1,
        timeData: {},
        now: "",
        audio_link: "",
        audioAction: {
            method: ""
        }
    },
    methods: {
        clickMusick: function(e) {
            e.currentTarget.dataset.value ? this.setData(t({}, "audioAction.method", "play")) : this.setData(t({}, "audioAction.method", "pause")), 
            this.setData({
                isShow: e.currentTarget.dataset.value
            });
        },
        onChangeTime: function(t) {
            this.setData({
                timeData: t.detail
            });
        }
    }
});